/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #181c2b 0%, #232946 100%);
    min-height: 100vh;
    color: #f3f6fa;
}

/* 登录/注册框容器 */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 32px 32px 24px 32px;
    background: rgba(30,34,54,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px #1e90ff22;
}

/* 标题样式 */
.login-title {
    color: #1e90ff;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #1e90ff44;
    animation: fadeInDown 1s;
    text-align: center;
}

/* 表单行样式 */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* 标签样式 */
.form-row label {
    width: 80px;
    font-weight: 500;
    color: #f3f6fa;
    margin-right: 15px;
    text-align: right;
}

/* 输入框样式 */
.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #1e90ff;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #232946;
    color: #fff;
}

.form-row input[type="text"]:focus,
.form-row input[type="password"]:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 8px #1e90ff88;
}

/* 提交按钮样式 */
.submit-btn {
    background: #232946;
    color: #fff;
    border: 1px solid #1e90ff;
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
    padding: 12px 120px; /* 按钮的内边距 */
    font-size: 16px;
    cursor: pointer;
    width: 50%; /* 按钮宽度 */
    text-align: center; /* 字体居中 */
    margin-top: 20px;
    margin-left: 20px; /* 按钮向右移动20px */
}

.submit-btn:hover {
    background: #1e90ff;
    color: #fff;
    box-shadow: 0 0 12px #1e90ff88, 0 0 2px #fff;
    transform: scale(1.08);
}

/* 错误消息样式 */
.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 12px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 25px;
        margin: 0 15px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}